package cn.sppxpp.model;

import cn.sppxpp.annotations.Component;
import cn.sppxpp.annotations.MyAutoWired;
import cn.sppxpp.util.ClassLoaderUtil;

/**
 * @author spp
 * @date 2020-10-27 16:11
 **/
@Component
public class User {
    private String name;
    private String age;


    @MyAutoWired
    private UserInfo userInfo;

    private ClassLoaderUtil classLoaderUtil;

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                ", userInfo=" + userInfo +
                '}';
    }

    public User(){
        System.out.println("user---->进行初始化");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public ClassLoaderUtil getClassLoaderUtil() {
        return classLoaderUtil;
    }

    public void setClassLoaderUtil(ClassLoaderUtil classLoaderUtil) {
        this.classLoaderUtil = classLoaderUtil;
    }
}
